<?php
namespace Home\Controller;
use Think\Controller;
/**
 * Created by PhpStorm.
 * User: zhaojia
 * Date: 15-9-1
 * Time: 上午11:21
 */
class ListController extends IndexController{
    private $_model;
    function _initialize(){

    }
    public function index(){
        $cid=I('get.cid',0,'intval');
        $data=M('Article')->where(array('category_cid'=>$cid))->order("sendtime DESC")->select();
        $this->assign('data',$data);
        $this->display();
    }

}